<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Add user</title>
</head>
<body>
	<jsp:include page="/resources/templates/top.jsp" />
	<jsp:include page="/administration/templates/template?id=1" />
	<center>
		<form:form method="POST" commandName="editUserForm">
			<table>
				<tr>
					<td><form:label path="login">Login: </form:label></td>
					<td><form:input path="login" /></td>
					<td><form:errors path="login" /></td>
				</tr>
				<tr>
					<td><form:label path="password">Password: </form:label></td>
					<td><form:password path="password"
							value="${editUserForm.password}" /></td>
					<td><form:errors path="password" /></td>
				</tr>
				<tr>
					<td><form:label path="userTypeId">userTypeId: </form:label></td>
					<td><form:select path="userTypeId">
							<form:options items="${userTypesAttr}" itemValue="id"
								itemLabel="type" />
						</form:select></td>
					<td><form:errors path="userTypeId" /></td>
				</tr>
				<tr>
					<td><form:label path="email">Email: </form:label></td>
					<td><form:input path="email" /></td>
					<td><form:errors path="email" /></td>
				</tr>
				<tr>
					<td><form:label path="skype">Skype: </form:label></td>
					<td><form:input path="skype" /></td>
					<td><form:errors path="skype" /></td>
				</tr>
				<tr>
					<td colspan="3"><form:label path="summary">Summary: </form:label></td>
				</tr>
				<tr>
					<td colspan="3"><form:textarea row="5" cols="30"
							path="summary" /></td>
				</tr>
				<tr>
					<td colspan="3"><form:errors path="summary" /></td>
				</tr>
				<tr>
					<td colspan="3"><input type="submit" value="Add"></td>
				</tr>
			</table>
		</form:form>
	</center>
</body>
</html>